package dao;

import entity.Students;
import entity.Violation_record;

import javax.naming.NamingException;
import java.sql.SQLException;
import java.util.List;

public interface Violation_recordDao{
    List<Violation_record> Violation_record(Integer searchKey,Integer currentPage,Integer pageSize) throws SQLException, ClassNotFoundException;
    int INSERT(Integer student_id,String student_name,String violation_type,String punishment,String record_time,String auditor,String status) throws SQLException, ClassNotFoundException;
    int UPDATE(String id,String violation_type,String punishment,String record_time,String auditor,String status) throws SQLException, ClassNotFoundException;
   int select(String name) throws SQLException, ClassNotFoundException;
    int delete(int id) throws SQLException, NamingException, ClassNotFoundException;
    int getTotalCount(String username) throws SQLException, NamingException, ClassNotFoundException;
}
